# Copyright lowRISC contributors (OpenTitan project).
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "commands",
    srcs = ["commands.c"],
    hdrs = ["commands.h"],
    deps = [
        ":aes_sca_commands",
        ":alert_fi_commands",
        ":crypto_fi_commands",
        ":cryptolib_fi_asym_commands",
        ":cryptolib_fi_sym_commands",
        ":cryptolib_sca_asym_commands",
        ":cryptolib_sca_sym_commands",
        ":edn_sca_commands",
        ":extclk_sca_fi_commands",
        ":hmac_sca_commands",
        ":ibex_fi_commands",
        ":kmac_sca_commands",
        ":lc_ctrl_fi_commands",
        ":otbn_fi_commands",
        ":otbn_sca_commands",
        ":otp_fi_commands",
        ":prng_sca_commands",
        ":rom_fi_commands",
        ":sha3_sca_commands",
        ":trigger_sca_commands",
        "//sw/device/lib/ujson",
    ],
)

cc_library(
    name = "aes_sca_commands",
    srcs = ["aes_sca_commands.c"],
    hdrs = ["aes_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "crypto_fi_commands",
    srcs = ["crypto_fi_commands.c"],
    hdrs = ["crypto_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "cryptolib_fi_sym_commands",
    srcs = ["cryptolib_fi_sym_commands.c"],
    hdrs = ["cryptolib_fi_sym_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "cryptolib_fi_asym_commands",
    srcs = ["cryptolib_fi_asym_commands.c"],
    hdrs = ["cryptolib_fi_asym_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "cryptolib_sca_sym_commands",
    srcs = ["cryptolib_sca_sym_commands.c"],
    hdrs = ["cryptolib_sca_sym_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "cryptolib_sca_asym_commands",
    srcs = ["cryptolib_sca_asym_commands.c"],
    hdrs = ["cryptolib_sca_asym_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "edn_sca_commands",
    srcs = ["edn_sca_commands.c"],
    hdrs = ["edn_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "extclk_sca_fi_commands",
    srcs = ["extclk_sca_fi_commands.c"],
    hdrs = ["extclk_sca_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "hmac_sca_commands",
    srcs = ["hmac_sca_commands.c"],
    hdrs = ["hmac_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "ibex_fi_commands",
    srcs = ["ibex_fi_commands.c"],
    hdrs = ["ibex_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "ibex_sca_commands",
    srcs = ["ibex_sca_commands.c"],
    hdrs = ["ibex_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "kmac_sca_commands",
    srcs = ["kmac_sca_commands.c"],
    hdrs = ["kmac_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "lc_ctrl_fi_commands",
    srcs = ["lc_ctrl_fi_commands.c"],
    hdrs = ["lc_ctrl_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "otbn_fi_commands",
    srcs = ["otbn_fi_commands.c"],
    hdrs = ["otbn_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "otbn_sca_commands",
    srcs = ["otbn_sca_commands.c"],
    hdrs = ["otbn_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "otp_fi_commands",
    srcs = ["otp_fi_commands.c"],
    hdrs = ["otp_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "prng_sca_commands",
    srcs = ["prng_sca_commands.c"],
    hdrs = ["prng_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "rng_fi_commands",
    srcs = ["rng_fi_commands.c"],
    hdrs = ["rng_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "rom_fi_commands",
    srcs = ["rom_fi_commands.c"],
    hdrs = ["rom_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "alert_fi_commands",
    srcs = ["alert_fi_commands.c"],
    hdrs = ["alert_fi_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "pentest_lib_commands",
    srcs = ["pentest_lib_commands.c"],
    hdrs = ["pentest_lib_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "sha3_sca_commands",
    srcs = ["sha3_sca_commands.c"],
    hdrs = ["sha3_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)

cc_library(
    name = "trigger_sca_commands",
    srcs = ["trigger_sca_commands.c"],
    hdrs = ["trigger_sca_commands.h"],
    deps = ["//sw/device/lib/ujson"],
)
